package ulric.kit;

/**
 * 
 * @author ulric.qin@gmail.com
 */
public class SQLKit {

	public static String joinQuestionMark(int size) {
		StringBuilder ret = new StringBuilder("");
		if (size <= 0) {
			throw new IllegalArgumentException(
					"The param size should be positive!");
		}
		for (int i = 0; i < size; i++) {
			ret.append("?,");
		}
		ret.deleteCharAt(ret.length() - 1);
		return ret.toString();
	}

	public static void main(String[] args) {
		System.out.println(joinQuestionMark(3));
	}
}
